package cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user.student;

import cn.edu.swpu.cins.u_chain.frontend.entity.dto.user.student.StudentInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class StudentInfoDB {
    private int studentId;
    private int degreeMajorGradeId;
    private int schoolId;
    private int userId;
    private String studentName;

    public StudentInfoDB(StudentInfo studentInfo) {
        this.schoolId = studentInfo.getSchoolId();
        this.userId = studentInfo.getUserId();
        this.studentName = studentInfo.getStudentName();
    }
}
